<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>回款审核</title>
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link rel="stylesheet" href="/js/bootstrap-table/bootstrap-table-1.18.3.min.css">
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <link rel="stylesheet" href="/css/skin.css"/>
    <!--固定table列-->
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/daterangepicker.css" />
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css"/>
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-multiselect.css" type="text/css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <link rel="stylesheet" href="/css/finance/payment-record.css">
    <!--表单校验插件-->
    <link rel="stylesheet" href="/css/bootstrapValidator.min.css" />
    <link rel="stylesheet" href="/css/viewer.css">
    <link rel="stylesheet" href="/css/finance/backFlowExamine.css">
</head>
<body>
<div class="container-fluid clue-page">
    <div class="card">
        <div class="card-header">
            <h1>回款审核</h1>
        </div>
        <div class="card-body">
            <div class="row content-action">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 " style="padding-left: 0">
                    <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 pull-right">
                        <div class="pull-right">
                            <div class="min-search pull-right" style="margin-left: 15px">
                                <input class="form-control" type="text" placeholder="请输入订单编号/订单客户名称"
                                       id="orderNumberReturnMoney" name="orderNumberReturnMoney">
                                <button class="btn btn-primary" type="button" onclick="returnMoneyExamineTableInit()">
                                    <i class="mdi mdi-magnify"></i><span>搜索</span>
                                </button>
                            </div>
                        </div>
                        <div class="pull-right" style="display:flex">
                            <!--<label class="control-label pull-left">客服审核状态:</label>-->
                            <div class="form-content" style="width:180px">
                                <select  class="form-control selectpicker" id='csExamineState' type="text" placeholder="请选择客服审核状态" onchange="returnMoneyExamineTableInit()">
                                    <option value="">请选择客服审核状态</option>
                                    <option value="0">正在审核</option>
                                    <option value="1">审核通过</option>
                                    <option value="2">审核未通过</option>
                                    <option value="3">补充材料</option>
                                    <option value="4">审核通过并盖章</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 ">
                    <table id="returnMoneyExamineTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<!--回款审核-->
<div class="modal fade" tabindex="-1" role="dialog" id="approvalModal">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header" style="padding:15px 30px">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <header>
                    不一致性审核
                    <span>(订单编号:<span id="orderNumberApprovl"></span>)</span>
                </header>
            </div>
            <div class="modal-body clearFix" style="min-height: 200px;">
                <main id="exchangeApproval" class="clearFix">
                    <div>
                        <form class="form-horizontal clearFix bgForm">
                            <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label pull-left">流水客户名称:</label>
                                <div class="form-content">
                                    <span id="flowCustomerName"></span>
                                </div>
                            </div>
                            <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label pull-left">当前流水客户名称所有人:</label>
                                <div class="form-content">
                                    <span id="flowCreatePeopleName"></span>
                                </div>
                            </div>
                            <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label pull-left">流水号:</label>
                                <div class="form-content">
                                    <span id="serial"></span>
                                </div>
                            </div>
                            <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label pull-left">流水金额:</label>
                                <div class="form-content">
                                    <span id="arriveMoney"></span>
                                </div>
                            </div>
                            <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label pull-left">订单客户名称:</label>
                                <div class="form-content">
                                    <span id="orderCustomerName"></span>
                                </div>
                            </div>
                            <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label pull-left">当前订单所有人:</label>
                                <div class="form-content">
                                    <span id="orderCreatePeopleName"></span>
                                </div>
                            </div>
                            <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label pull-left">客服证明材料:</label>
                                <div class="form-content">
                                    <a href="javascript:;" style="line-height:36px;margin-left:5px;" onclick="showFile(0);">查看</a>
                                </div>
                            </div>
                            <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label pull-left">财务证明材料:</label>
                                <div class="form-content">
                                    <a href="javascript:;" style="line-height:36px;margin-left:5px;" onclick="showFile(1);">查看</a>
                                </div>
                            </div>
                        </form>
                        <form class="form-horizontal clearFix" style="margin-top:10px">
                            <div class="form-group clearFix col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-bottom:0">
                                <label class="control-label" style="font-weight: bold;font-size:16px">订单详情:</label>
                            </div>
                        </form>
                        <form class="form-horizontal clearFix bgForm">
                            <div class="form-group clearFix col-lg-12 col-md-12 col-sm-12 col-xs-12" id="exchangeTableContainer">
                                <!--<label class="control-label" style="font-weight: bold;font-size:16px">订单详情:</label>-->
                                <div class="form-content">
                                    <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                        <label class="control-label pull-left">合同类型:</label>
                                        <div class="form-content">
                                            <span id="contractType"></span>
                                        </div>
                                    </div>
                                    <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                        <label class="control-label pull-left">合同起止日期:</label>
                                        <div class="form-content">
                                            <span id="contractRange"></span>
                                        </div>
                                    </div>
                                    <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                        <label class="control-label pull-left">合作开发人员:</label>
                                        <div class="form-content">
                                            <a href="#!" data-toggle="modal" data-target="#cooperateModal" style="position:relative;top: 6px;margin-left:5px;">查看</a>
                                        </div>
                                    </div>
                                    <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                        <label class="control-label pull-left">合同编号:</label>
                                        <div class="form-content">
                                            <span id="contractNumber"></span>
                                        </div>
                                    </div>
                                    <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                        <label class="control-label pull-left">订单状态:</label>
                                        <div class="form-content">
                                            <span id="orderStatus"></span>
                                        </div>
                                    </div>
                                    <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                        <label class="control-label pull-left">订单所有人:</label>
                                        <div class="form-content">
                                            <span id="createPeopleName"></span>
                                        </div>
                                    </div>
                                    <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                        <label class="control-label pull-left">订单创建时间:</label>
                                        <div class="form-content">
                                            <span id="orderCreateTm"></span>
                                        </div>
                                    </div>
                                    <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                        <label class="control-label pull-left">所属分公司:</label>
                                        <div class="form-content">
                                            <span id="orderCompanyName"></span>
                                        </div>
                                    </div>
                                    <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                        <label class="control-label pull-left">客户名称:</label>
                                        <div class="form-content">
                                            <span id="orderCustomerName2"></span>
                                        </div>
                                    </div>
                                    <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                        <label class="control-label pull-left">订单总金额:</label>
                                        <div class="form-content">
                                            <span id="orderActualTotalAmount"></span>
                                        </div>
                                    </div>
                                    <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                        <label class="control-label pull-left">当前回款:</label>
                                        <div class="form-content">
                                            <span id="returnMoneyAmount"></span>
                                        </div>
                                    </div>
                                    <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                        <label class="control-label pull-left">订单尾款:</label>
                                        <div class="form-content">
                                            <span id="residueMoneyAmount"></span>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </form>
                        <form class="form-horizontal clearFix" id="approvalForm">
                            <div class="form-group clearFix col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <label class="control-label pull-left">审核记录:</label>
                                <div class="form-content" style="width: calc(100% + 30px);">
                                    <table id="approvalRecord"></table>
                                </div>
                            </div>
                            <div class="form-group clearFix col-lg-12 col-md-12 col-sm-12 col-xs-12 approvalDemo">
                                <label class="control-label pull-left label-required">客服审核备注:</label>
                                <div class="form-content">
                                    <textarea id="csExamineRemark" name="csExamineRemark" class="form-control" rows="5" placeholder="请输入备注"></textarea>
                                </div>
                            </div>
                            <div class="form-group clearFix col-lg-12 col-md-12 col-sm-12 col-xs-12 approvalDemo">
                                <label class="control-label pull-left  label-required">客服审核结果:</label>
                                <div class="form-content" style="display: flex;line-height: 36px;">
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="csExamineState" id="inlineRadio11" value="1">
                                        <label class="form-check-label" for="inlineRadio11">通过</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="csExamineState" id="inlineRadio21" value="3">
                                        <label class="form-check-label" for="inlineRadio21">补充材料</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="csExamineState" id="inlineRadio31" value="2">
                                        <label class="form-check-label" for="inlineRadio31">不通过</label>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div id='btnsContainer' class="card-body pull-right">
                        <div class="btn btn-default" data-dismiss="modal">取消</div>
                        <div class="btn btn-primary"style="margin-left: 20px;" onclick="submitApproval()">确定</div>
                    </div>
                </main>

            </div>
        </div>
    </div>
</div>
<!-- 合作开发人员列表 -->
<div class="modal fade" tabindex="-1" role="dialog" id="cooperateModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4>合作开发人员</h4>
            </div>
            <div class="modal-body" style="padding-bottom: 18px;">
                <table id="cooperateTable"></table>
            </div>
        </div>
    </div>
</div>
<!-- 附件预览 -->
<div class="modal fade bs-example-modal-lg fileModal" tabindex="-1" role="dialog" id="fileModal">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4>附件预览</h4>
            </div>
            <div class="modal-body">
                <iframe src="" frameborder="0" id="fileIframe"></iframe>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min-1.18.3.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<script type="text/javascript" src="/js/crm/common/common.js"></script>
<!--table固定列-->
<script type="text/javascript" src="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns-1.18.3.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--图片查看-->
<script type="text/javascript" src="/js/viewer.js"></script>
<script type="text/javascript" src="/js/jquery-viewer.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!--表单校验-->
<script type="text/javascript" src="/js/bootstrapValidator.min.js"></script>
<!-- 拖动 -->
<script src="/js/bootstrap-table/extensions/resizable/bootstrap-table-resizable.min.js"></script>
<script src="/js/crm/common/colResizable-1.6.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/finance/returnMoneyExamine.js"></script>
</html>